package com.uatair.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.uatair.system.domain.TpProjectTask;
import com.uatair.system.domain.vo.TaskVo;
import com.uatair.system.mapper.TpProjectTaskMapper;
import com.uatair.system.service.TpProjectTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TpProjectTaskServiceImpl extends ServiceImpl<TpProjectTaskMapper, TpProjectTask> implements TpProjectTaskService {

    @Autowired
    private TpProjectTaskMapper tpProjectTaskMapper;

    @Override
    public List<TaskVo> getProjectTaskVo(Integer type) {
        //type 0-未同步数据 1-已同步数据 2-同步失败数据
        return tpProjectTaskMapper.getProjectTaskVo(type);
    }

    @Override
    public List<TpProjectTask> selectTpProjectTaskList(TpProjectTask tpProjectTask) {
        return this.baseMapper.selectTpProjectTaskList(tpProjectTask);
    }
}
